<?php
/*
	require('../Model/mysql.php');
	require('../host_config.php');
	$mysql = new MySQL();
	$link = $mysql->connect($mysql_host, $mysql_user, $mysql_passwd, $mysql_db);
	$shopid = $_GET['shopid'];
	$sql = "Select `arrivetime`, `leavetime` from `Statistics` WHERE `shopid` = '$shopid'";
	$rel = $mysql->query($sql, $link);
	while($row = mysql_fetch_row($rel)) {
		
		$eatTime += strtotime($row[1]) - strtotime($row[0]);
		
		//echo "SS = " . strtotime($row[1]) . "<br />";
		//echo "arriveTime = " . $row[0] . "<br />";
		//echo "leaveTime = " . ($row[1]) . "<br />";
		
		echo "eatting = " . $eatTime . "<br />";
		
		
	}
	$eatTime /= 5;
	echo "eatting = " . $eatTime ."<br />";


require('../Model/mysql.php');
require('../host_config.php');
$mysql = new MySQL();
$link = $mysql->connect($mysql_host, $mysql_user, $mysql_passwd, $mysql_db);

$sql = "select shopid, fullname, address, pic5, currentnumber, maxofnumber, tel from Shops";
$result = mysql_query($sql, $link);
while($e=mysql_fetch_assoc($result)) {
	$output[]=$e;
	print_r($e);
	echo "<br />";
}
print_r($output);
*/

/*
require('../Model/mysql.php');
require('../host_config.php');
$mysql = new MySQL();
$link = $mysql->connect($mysql_host, $mysql_user, $mysql_passwd, $mysql_db);
$ismi = $_GET['imsi'];
$sql = "SELECT `shopid`, `flag` FROM `Client` WHERE `imsi` = '$imsi'";
$result = $mysql->query($sql, $link);
while($row = mysql_fetch_row($result)) {
	echo gettype($row);
}

if(is_bool($row) === TRUE) {
	if($row === FALSE)
		echo "FALSE";
}
if(empty($row)) echo "XD";
print_r($row);
*/


